I am trying to count the number of time the Object text of the object o has changed since last baseline using the code below. |
Re: wrong history type createLink for attribute name
Some of the History parameters are illegal depending on the type of History. In this case your script has come across a "CreateLink" history for which "attrName" is illegal (there is no attrName associated with creating a link).
History h
int Count = 0
string NameAttr
for h in o do
{ NameAttr = ""
noError()
NameAttr = h.attrName
ErrMess = lastError()
// Ignore ErrMess, we don't care why there was an error
if (NameAttr == "Object Text") Count++
}
|
Re: wrong history type createLink for attribute name llandale - Fri Feb 04 13:47:34 EST 2011
Some of the History parameters are illegal depending on the type of History. In this case your script has come across a "CreateLink" history for which "attrName" is illegal (there is no attrName associated with creating a link).
History h
int Count = 0
string NameAttr
for h in o do
{ NameAttr = ""
noError()
NameAttr = h.attrName
ErrMess = lastError()
// Ignore ErrMess, we don't care why there was an error
if (NameAttr == "Object Text") Count++
}
|
Re: wrong history type createLink for attribute name SystemAdmin - Fri Feb 04 13:58:54 EST 2011 ht = h.type if (ht != modifyAttr) continue Yes, that's what I usually do, but the original author (it seems) needed to know about noError and lastError().
|